package elements.login;

import com.robotium.solo.Solo;
import android.widget.Button;
import utils.Util;
import utils.MyException.NotFoundException;
/**
 * 第一次打开app出现的引导页面
 * @author Administrator
 *
 */
public class Enter_Page {
	public Solo solo;
	private Button enter;

	public Button getEnter() throws NotFoundException {
		enter=(Button)Util.myGetView(solo,"enter");
		return enter;
	}
	public Enter_Page(Solo solo) {
		this.solo = solo;
	}
	
	/**
	 * 
	 * 向外提供homepage界面的控件对象
	 * @return
	 * @throws NotFoundException 
	 * 
	 */
	public Button getElement() throws NotFoundException {
		return getEnter();
	}
	/**
	 * 对控件的相关操作
	 * @throws NotFoundException 
	 */
	public void clickOnButton() throws NotFoundException{
		solo.clickOnView(getEnter());
	}
}
